<?php 
	include "../ini.php";
	include '../includes/function.php'
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http//www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xmllang="en">
<head>
<?php include '../widgets/head.php'?>
<script type="text/javascript" src="../js/jquery/external/jquery.simplyscroll-1.0.4/jquery.simplyscroll-1.0.4.min.js"></script>
<link rel="stylesheet" href="../js/jquery/external/jquery.simplyscroll-1.0.4/jquery.simplyscroll-1.0.4.css" media="all" type="text/css">
<script type="text/javascript" src="../js/jquery/external/stickytooltip/stickytooltip.js"></script>
<link rel="stylesheet" type="text/css" href="../js/jquery/external/stickytooltip/stickytooltip.css" />
</head>
<body>
<div id="art-page-background-glare">
  <div id="art-page-background-glare-image">
    <div id="art-main">
      <div class="art-sheet">
        <div class="art-sheet-tl"></div>
        <div class="art-sheet-tr"></div>
        <div class="art-sheet-bl"></div>
        <div class="art-sheet-br"></div>
        <div class="art-sheet-tc"></div>
        <div class="art-sheet-bc"></div>
        <div class="art-sheet-cl"></div>
        <div class="art-sheet-cr"></div>
        <div class="art-sheet-cc"></div>
        <div class="art-sheet-body">
          <?php include '../widgets/header.php'?>
          <?php include '../widgets/nav.php'?>
          <div class="art-content-layout">
            <div class="art-content-layout-row">
              <div class="art-layout-cell art-sidebar1">
                <?php sidebar('left');?>
                <div class="cleared"></div>
              </div>
              <div class="art-layout-cell art-content">
                <div class="art-post">
                  <div class="art-post-tl"></div>
                  <div class="art-post-tr"></div>
                  <div class="art-post-bl"></div>
                  <div class="art-post-br"></div>
                  <div class="art-post-tc"></div>
                  <div class="art-post-bc"></div>
                  <div class="art-post-cl"></div>
                  <div class="art-post-cr"></div>
                  <div class="art-post-cc"></div>
                  <div class="art-post-body">
                    <div class="art-post-inner art-article">
                      <?php thong_bao()?>
                      <h2 class="art-postheader">Đăng Kí Tài Khoản</h2>
                      <div class="line"> </div>
                      <div class="art-postcontent">
                        <form class="dangky" action="../thanh-vien/xu-ly-dang-ky.html" method="post">
                          <h2>Thông tin cá nhân</h2>
                          <div class="content">
                            <table class="form">
                              <tr>
                                <th>Họ và tên</th>
                                <td width="397px"><input class="dai" type="text" value="<?php echo $_SESSION['ho_ten'];$_SESSION['ho_ten']="";?>" name="ho_ten">
                                  <span style="float:right; color:red">(*)</span></td>
                              </tr>
                              <tr>
                                <th>Số chứng minh thư</th>
                                <td><input type="text" value="<?php echo $_SESSION['cmnd'];$_SESSION['cmnd']="";?>" name="cmnd">
                                  <span style="float:right; color:red">(*)</span></td>
                              </tr>
                              <tr>
                                <th>Ngày sinh</th>
                                <td><script>
										$(function() {
											$( "#ngay_sinh" ).datepicker();
										});
									</script>
                                  <input class="text-input small-input date" value="<?php echo $_SESSION['ngay_sinh'];$_SESSION['ngay_sinh']="";?>" name="ngay_sinh" type="text" id="ngay_sinh"/>
                                  <small style="padding-left:5px">Nhập vào dạng ngày tháng MM/DD/YYYY</small>
                                  <span style="float:right; color:red">(*)</span></td>
                              </tr>
                              <tr>
                                <th>Giới tính</th>
                                <td class="k_gc"><input value="0" type="radio" <?php  if($_SESSION['gioi_tinh']=="" || $_SESSION['gioi_tinh']=="Nam") echo 'checked="checked"';$_SESSION['gioi_tinh']="" ?> name="gioi_tinh" />
                                  Nam
                                  <input value="1" type="radio" <?php  if($_SESSION['gioi_tinh']=="Nữ") echo 'checked="checked"';$_SESSION['gioi_tinh']="" ?> name="gioi_tinh" />
                                  Nữ <span style="float:right; color:red"><span style="float:right; color:red">(*)</span></span></td>
                                  </td>
                              </tr>
                              <tr>
                                <th>E-mail</th>
                                <td><input class="dai" type="text" value="<?php echo $_SESSION['email'];$_SESSION['email']="";?>" name="email">
                                  <span style="float:right; color:red">(*)</span></td>
                              </tr>
                              <tr>
                                <th>Điện Thoại</th>
                                <td><input type="text" value="<?php echo $_SESSION['dien_thoai'];$_SESSION['dien_thoai']="";?>" name="dien_thoai">
                                  <span style="float:right; color:red">(*)</span></td>
                              </tr>
                              <tr>
                                <th>Công ty</th>
                                <td><input class="dai" type="text" value="<?php echo $_SESSION['cong_ty'];$_SESSION['cong_ty']="";?>" name="cong_ty"></td>
                              </tr>
                              <tr>
                                <th>Địa chỉ</th>
                                <td><input class="dai" type="text" value="<?php echo $_SESSION['dia_chi'];$_SESSION['dia_chi']="";?>" name="dia_chi">
                                  <span style="float:right; color:red">(*)</span></td>
                              </tr>
                            </table>
                          </div>
                          <h2>Thông tin đăng nhập</h2>
                          <div class="content">
                            <table class="form">
                              <tr>
                                <th>Tên đăng nhập</th>
                                <td style="width:440px"><input type="text" value="<?php echo $_SESSION['ten_dn'];$_SESSION['ten_dn']="";?>" name="ten_dn">
                                  <span style="float:right; color:red">(*)</span></td>
                              </tr>
                              <tr>
                                <th>Mật Khẩu</th>
                                <td><input type="password" value="" name="mk">
                                  <span style="float:right; color:red">(*)</span></td>
                              </tr>
                              <tr>
                                <th>Nhập lại Mật Khẩu</th>
                                <td><input type="password" value="" name="nhap_lai_mk">
                                  <span style="float:right; color:red">(*)</span></td>
                              </tr>
                              <tr>
                                <th>Mã bảo vệ</th>
                                <td><script language="javascript">
									function doi_hinh_thanh_toan() {
										var x = '../includes/randompic.php?a=' + Math.random();
										document.getElementById('hinh_bao_ve').src = x;
										//alert(x);
									}
								</script> 
                                  <img src="../includes/randompic.php" style="margin: 0pt; padding: 0pt; vertical-align: middle;" id="hinh_bao_ve"> <span onclick="doi_hinh_thanh_toan()" style="color: blue; cursor: pointer; vertical-align: middle;">Đổi ảnh khác</span></td>
                              </tr>
                              <tr>
                                <th>Nhập mã bảo vệ</th>
                                <td><input type="text" name="ma_bao_ve">
                                  <span style="float:right; color:red">(*)</span></td>
                              </tr>
                            </table>
                          </div>
                          <h2>Thư thông báo</h2>
                          <div class="content">
                            <div style="float:left">Đăng kí thông báo</div>
                            <div style="float:left">
                              <input type="radio" value="1" name="thu_bao">
                            </div>
                            <div style="float:left">Có</div>
                            <div style="float:left">
                              <input type="radio" checked="checked" value="0" name="thu_bao">
                            </div>
                            <div style="float:left">Không</div>
                            <div class="cleared"></div>
                          </div>
                          </br>
                          <div>Tôi đã đọc và đồng ý với điều khoản <a href="#"><b>Chính sách cá nhân</b></a>
                            <input type="checkbox" <?php if($_SESSION['dieu_khoan']!=NULL) echo 'checked="checked"'?> value="1" name="dieu_khoan">
                            <input type="submit" class="button" value="THỰC HIỆN" />
                          </div>
                        </form>
                      </div>
                      <div class="cleared"></div>
                    </div>
                    <div class="cleared"></div>
                  </div>
                </div>
                <div class="cleared"></div>
              </div>
              <div class="art-layout-cell art-sidebar2">
                <?php sidebar('right')?>
                <div class="cleared"></div>
              </div>
            </div>
          </div>
          <div class="cleared"></div>
          <?php include '../widgets/footer.php'?>
          <div class="cleared"></div>
        </div>
      </div>
    </div>
  </div>
</div>
</body>
</html>
